import request from "@/router/axios";

// 补液车
export const getPage = (page, params) => {
  return request({
    url: "/admin/storagecar/page",
    method: "get",
    params: {
      ...page,
      ...params,
    },
  });
};

export const submit = (form) => {
  return request({
    url: "/admin/storagecar/submit",
    method: "post",
    data: {
      ...form,
    },
  });
};

export const remove = (id) => {
  return request({
    url: "/admin/storagecar/remove",
    method: "post",
    params: {
      ids: id,
    },
  });
};

// 更换司机
export const changeCarUser = (carId, userId) => {
  return request({
    url: `/api/uic-system/fillstoragecar/changeCarUser/${carId}/${userId}`,
    method: "post",
  });
};
